// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 解决部分手机不支持es6语法白屏问题
import 'babel-polyfill'

// 引入并使用轮播图插件
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'

import 'css/reset.css'
// 移动端1px边框解决方案
import 'css/border.css'
// 引入iconfont字体图标
import 'css/iconfont.css'

// 解决移动端点击事件300ms延迟方案
import fastClick from 'fastclick'

import store from './store/index'

// 使用轮播图插件
Vue.use(VueAwesomeSwiper)

fastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
